package cn.dansj.bean;

import cn.dansj.common.utils.transfer.DefaultMethods;

import java.util.List;

public class FileUploadInfo extends DefaultMethods {

    private String fileName;

    private Long fileSize;

    private String contentType;

    private Integer chunkNum;

    private String uploadId;

    private Long chunkSize;

    // 桶名称
    private String bucketName;

    //md5
    private String fileMd5;

    //文件类型
    private String fileType;

    //已上传的分片索引+1
    private List<Integer> chunkUploadedList;

    public String getFileName() {
        return fileName.replaceAll("\\s+", "");
    }

    public FileUploadInfo setFileName(String fileName) {
        this.fileName = fileName.replaceAll("\\s+", "");
        return this;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public FileUploadInfo setFileSize(Long fileSize) {
        this.fileSize = fileSize;
        return this;
    }

    public String getContentType() {
        return contentType;
    }

    public FileUploadInfo setContentType(String contentType) {
        this.contentType = contentType;
        return this;
    }

    public Integer getChunkNum() {
        return chunkNum;
    }

    public FileUploadInfo setChunkNum(Integer chunkNum) {
        this.chunkNum = chunkNum;
        return this;
    }

    public String getUploadId() {
        return uploadId;
    }

    public FileUploadInfo setUploadId(String uploadId) {
        this.uploadId = uploadId;
        return this;
    }

    public Long getChunkSize() {
        return chunkSize;
    }

    public FileUploadInfo setChunkSize(Long chunkSize) {
        this.chunkSize = chunkSize;
        return this;
    }

    public String getFileMd5() {
        return fileMd5;
    }

    public FileUploadInfo setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
        return this;
    }

    public String getFileType() {
        return fileType;
    }

    public FileUploadInfo setFileType(String fileType) {
        this.fileType = fileType;
        return this;
    }

    public List<Integer> getChunkUploadedList() {
        return chunkUploadedList;
    }

    public FileUploadInfo setChunkUploadedList(List<Integer> chunkUploadedList) {
        this.chunkUploadedList = chunkUploadedList;
        return this;
    }

    public String getBucketName() {
        return bucketName;
    }

    public FileUploadInfo setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }
}